package com.v2.k51;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试@Import  在没有@Configuration时是否可以生成bean
 */
public class Test {


	public static void main(String[] args) {

		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

		B b = applicationContext.getBean(B.class);
		System.out.println(b);


	}

}
